<div class="alert alert-info">
<form action="function/form_function.php" method="POST">
<select id="logType" name="logType">

<?php 
	$datalogtype_list = DataLog::getDataLogTypeList();
	foreach ($datalogtype_list as $datalogtype) {
		echo '<option value="'.$datalogtype['datalog_type_id'].'">'.ucwords($datalogtype['datalog_type_name']).'</option>'; 
	}
?>
</select>
<br />
<input type="text" id="logValue" name="logValue" placeholder="(e.g 100cm or 35C)"/> <br />
<label for="note"> Note: </label> <br />
<textarea id="logNote" name="logNote" rows="4" cols="50"></textarea> <br />

<?php if (isset($_GET['benchmark']) && isset($_GET['mode'])) {
	echo '<input type="hidden" id="from" name="from" value="log.php?benchmark=' . $_GET['benchmark'] . '&mode="' . $_GET['mode'] . '/>';
} else if (isset($_GET['benchmark'])) {
	echo '<input type="hidden" id="from" name="from" value="log.php?benchmark=' . $_GET['benchmark'] . '/>';
} else {
	echo '<input type="hidden" id="from" name="from" value="log.php"/>';
} 
?>

<input type="radio" id="logTime" name="logTime" value="now" checked="checked"/> Now
<input type="radio" id="logTime" name="logTime" value="custom"/>  Set Time:
<input type="text" id="logCustomTime" name="logCustomTime" value="<?php echo date(DATE_FORMAT)?>"/><br /><br />

<input type="submit" name="enterLog" value="Enter Log" class="btn btn-primary pull-right"/> <br /> 
</form>
</div>